const mongoose = require('mongoose')

let articleSchema = new mongoose.Schema({
   uid:{
           type: mongoose.Schema.Types.ObjectId,
           ref: 'adminModel',
    },
    text:{
        type:String,
        require:true,
    },
    mdText:{
        type: String,
        require: true,
    },
    introduce:{
        type:String,
        default:'暂无简介哦~',
    },
    time:Date,

    title:{
        type:String,
        require:true,
    },
    keyWords:{
        type:Array
    }
   
})

let articleModel = mongoose.model('article', articleSchema)

module.exports = articleModel